import sys


def main(path):
    kept_ticker = ('BIG','HES','CSGP','HMN','NAV','CSGP','CLH','HSKA','CVS','ES','CRK','BRKS','IBCP','ENDP','INSM','OI','LMAT','DX','CSGP','HBMD','INSM','DXPE','DX','DX','CIEN','LHX','INSM','IBCP','FIBK','CXO','IBCP','EBAY','HSKA','CKH','FCFS','DGX','CRK','HMN','CXO','MRC','GWRE','GWRE','DX','BCO','FCFS','FGEN','GWRE','AVGO','CIEN','LMAT','OFG','ENDP','CMCO','HSKA','ALK','AAP','MKTX','CMCSA','HSKA','CSGP','MNST','CXO','AVGO','HBMD','IBCP','EGHT','LHX','FTV','INSM','OI','ANSS')
    lines = []
    with open(path, 'r', encoding='utf-8') as f:
        for line in f:
            t = line.split('\t')[0]
            if t in kept_ticker:
                lines.append(line)
    with open('out_' + path, 'w', encoding='utf-8') as f:
        f.writelines(lines)
    pass

if __name__ == '__main__':
    main(sys.argv[1])